package com.forezp.configclient.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 访问测试
 *
 * @author lvlinguang
 * @date 2020-02-17 17:48
 */
@RefreshScope
@RestController
public class HomeController {

    @Value("${profile}")
    String profile;

    @GetMapping("/hi")
    public String hi() {
        return profile;
    }
}
